#pragma once

#include <QMainWindow>
#include "ui_Form_EditModule.h"
#include "CzCommon.h"
#include "VM_made.h"
#include "VmMvd.h"
#include "IVmSolution.h"
#include "IVmProcedure.h"
#include "VMException.h"
#include "VmControlBaseInfo.h"

using namespace VisionMasterSDK;
using namespace VisionMasterSDK::VmSolution;
using namespace VisionMasterSDK::VmProcedure;

class Form_EditModule : public QMainWindow
{
	Q_OBJECT

public:
	Form_EditModule( QString, QString,QWidget *parent = nullptr);
	~Form_EditModule();
	void FormInit();
	void closeEvent(QCloseEvent * e);
	void ChooseModule();

public slots:
	void action_ProRunOnce_clicked();
	void action_ProRunning_clicked();
	void action_ProStop_clicked();
signals:
	void FormClosed(QString, QString);

private:
	Ui::Form_EditModuleClass ui;
	IVmSolution * g_pVmSol = nullptr;
	IVmProcedure* g_pVmPro = nullptr;
	GlobalCameraModuleTool * g_pGlobalCamera = nullptr;
	QString g_proName;
	QString g_modName;
	bool g_bIsRun = false;
};
